home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Logoff Options 2.xpl < prev    next >
Text File  |  2001-01-21  |  2KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows 9x/ME\10) FastShutdown"
  5. "NAME"="Windows 98/ME Fast Shutdown"
  6. "WARNING"="There are some known problems with the Fast Shutdown option. Please think twice before you use this option."
  7. "VERSION"="1.05"
  8. "OSVERSION"="00101"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Enable "Fast ShutDown""
  11. "DESCRIPTION 1"="The Fast ShutDown option is only for Windows 98(SE) and Windows ME. It allows some computers to shut down or restart much more quickly if enabled."
  12. "DESCRIPTION 2"="Most computers can run fine with it enabled and save time.  If your computer freezes during shut down, simply disable this option next time you open X-Setup."
  13. "DESCRIPTION 3"="If you have problems with the "Fast Shutdown" option, please see http://www.xteq.com/support/dc/29.html."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18. "COMMENT 2"="Thanks to AXCEL216 for the setting and CptSiskoX for his help!"
  19.  
  20.  
  21. sFRB="HKLM\System\CurrentControlSet\control\Shutdown\FastReboot" 'STR: 1=ON
  22. Sub Plugin_Initialize 
  23.     i=RegReadValue(sFRB)
  24.     if i=1 then 
  25.        SetUIElement 1,true
  26.     end if     
  27. End Sub
  28.  
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33.  
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  
  37.  b=GetUIElement(1)
  38.  if b=true then
  39.     Call RegWriteValue(sFRB,"1",1)
  40.  else
  41.     i=RegReadValue(sFRB)
  42.     if IsNull(i)=false then 
  43.        Call RegDeleteValue(sFRB)
  44.     end if
  45.  end if
  46.  
  47.  
  48.  Call Restart()
  49. End Sub
  50.  
  51.  
  52. Sub Plugin_Terminate 
  53. End Sub
  54.  
  55.  
  56.  
  57.